﻿using System;

namespace TiaoTiaoCode.AutoUpdate.Common.Exceptions
{
    /// <summary>
    /// 定义异常
    /// </summary>
    public class CustomException : Exception
    {
        public string Code { get; }

        public CustomException(string msg) : base(msg)
        {
            Code = "9999";
        }

        public CustomException(string code, string msg) : base(msg)
        {
            Code = code;
            Data.Add("code", code);
        }
    }
}
